package cn.edu.scau.cmi.wuyihan.exercise6.Example6_4;
 	
 	public class Bank {
 	      int saveMoney;
 	      int year;
 	      double interest;
 	      public double computerInterest(){
 	    	  interest=year*0.035*saveMoney;
 	    	  System.out.printf("%d元存在银行%d年的利息：%f元\n",saveMoney,year,interest);
 	    	  return interest;
 	     }
 	}